<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output omit-xml-declaration="yes" method="xml" indent="no"/>

	<!-- common variables -->
	<xsl:variable name="want_xed">no</xsl:variable>
	<xsl:variable name="want_xslout">no</xsl:variable>
	<xsl:variable name="want_extvalid">no</xsl:variable>
	<xsl:variable name="x_dataurl">data.aspx?link=</xsl:variable>
	<xsl:variable name="x_popurl">pop.aspx?link=</xsl:variable>
	<xsl:variable name="xsl_baseurl">/xsl/</xsl:variable>
	<xsl:variable name="newline">&#10;</xsl:variable>
		
	<!-- common parameters -->
	<xsl:param name="want_debug"/>
	<xsl:param name="x_link"/>			<!-- link node as in the x_content.xml file -->
	<xsl:param name="x_site"/>			<!-- site node as in the x_site.xml file -->
	<xsl:param name="x_profile"/>		<!-- profile node as in the profile.xml file -->
	<xsl:param name="x_siteurl"/>
	<xsl:param name="x_baseurl"/>
	<xsl:param name="x_serverurl"/>
	<xsl:param name="x_secureurl"/>
	<xsl:param name="want_edit"/>		<!-- parameter to control the display of pages for editing -->
	<xsl:param name="edit_mode"/>		<!-- Preview / EditAdd / EditDelete / EditPage / EditNav / Publish -->
	<xsl:param name="want_template"/>	<!-- parameter to control the output to a template page -->
	<xsl:param name="img_root"/>		<!-- old (requires replacing) -->
	
	<!-- common variables derived from parameters -->
	<xsl:variable name="x_device"	select="$x_link/@device"/>
	<xsl:variable name="x_linkname"	select="$x_link/@name"/>
	<xsl:variable name="x_identity"	select="$x_profile/identity"/>
	<xsl:variable name="x_fields"	select="$x_profile/fields"/>
	<xsl:variable name="x_group" 	select="$x_identity/@group"/>
	
	<!-- not needed? -->
	<xsl:template name="redundant">
		<!-- old (but used) parameters -->
		<xsl:param name="x_popbaseurl"/>				<!-- to be defined (referenced in grpform items) -->
	</xsl:template>
	
	<!-- legacy variables -->
	<xsl:template name="oldvars">
		<xsl:variable name="want_status">no</xsl:variable>
		<xsl:variable name="want_history">no</xsl:variable>
		<xsl:variable name="tabchar">&#9;</xsl:variable>
	</xsl:template>
	
	<!-- legacy parameters -->
	<xsl:template name="oldparams">
		<xsl:param name="x_contact_telno"></xsl:param>
		<xsl:param name="x_contact_email"></xsl:param>
	
		<xsl:param name="x_secureurl"/>
		<xsl:param name="x_glossary"/>		<!-- glossary node (from page, when xml = links) -->
		<xsl:param name="this_sect"/>
		<xsl:param name="this_sub"/>
		<xsl:param name="this_proc"/>
		<xsl:param name="this_page"/>
		<xsl:param name="this_service"/>	<!-- mainly for error messages -->
		<xsl:param name="this_process"/>	<!-- mainly for error messages -->
		<xsl:param name="this_form"/>		<!-- mainly to control EditButtons template -->
		<xsl:param name="edit_add"/>
		<xsl:param name="edit_del"/>
	
		<!-- parameter to contain mnuitem links -->
		<xsl:param name="accmenu"/>
		
		<!-- parameters used for multiple pages -->
		<xsl:param name="page_this">1</xsl:param>
		<xsl:param name="page_count">1</xsl:param>
	</xsl:template>
	
</xsl:stylesheet>
